package de.jkoslows.ui;

import java.awt.BorderLayout;
import java.awt.FlowLayout;

import javax.swing.JFrame;
import javax.swing.UIManager;

import de.jkoslows.ui.components.MenuBar;
import de.jkoslows.ui.components.StatusBar;
import de.jkoslows.ui.components.Toolbar;

public class Application {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		createLookAndFeel();
		JFrame applicationWindow = createMainWindow();
	
		
		MenuBar menuBar = new MenuBar(applicationWindow);
		menuBar.create();
		
		menuBar.add(new Toolbar(menuBar));
		
		StatusBar statusBar = new StatusBar(applicationWindow);
		
		
		
//		Container content = applicationWindow.getContentPane();
//		
//		
//		
//		Component toolbar = createToolbar();
//		content.add(toolbar);
		
		
		

	}

	private static JFrame createMainWindow() {
		JFrame applicationWindow = new JFrame();
		applicationWindow.setSize(600, 600);
		applicationWindow.setVisible(true);
		applicationWindow.setTitle("Descision Maker");
		
		BorderLayout applicationLayout = new BorderLayout();
		applicationWindow.setLayout(applicationLayout);

		return applicationWindow;
	}

	private static void createLookAndFeel() {
		try{
			UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());			
		}catch(Exception e){
			
		}
	}

	

	

}
